package org.wlw.obj;

public class TestUser {
	public static void main(String[] args) {
		User u1 = new User("zhangsan","张三","123");
		User u2 = new User("zhangsan","张三","123");
		
		System.out.println(u1==u2);
		System.out.println(u1.equals(u2));
		//当输出一个类的时候，会自动输出完全的类名@哈希码
		//当输出一个类的时候，其实调用的是这个类的toString方法
		System.out.println(u1);
		System.out.println(u1.hashCode());
	}
}
